﻿@model IEnumerable<Event>

<h5>Uninvoiced Events</h5>
<table cellspacing="0" cellpadding="0" class="table">
    <thead>
        <tr>
            <th>Event Title</th>
            <th>Event Date</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>@item.Title</td>
                <td>@item.StartDate.ToString()</td>
                <td>
                    @using (Html.BeginForm("Create", "Invoice", new { id = @item.EventID }, FormMethod.Post, new { style = "margin: 0;" }))
                    {
                        <input type="submit" class="k-button" value="Create Invoice"/>
                    }
                </td>
            </tr>
        }
    </tbody>
</table>
